package com.punai.standard.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.core.domain.BaseEntity;
import com.punai.common.core.domain.TreeParentBo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分包费用项章节对象 sta_fb_chapter
 *
 * @author zxw
 * @date 2022-12-13
 */
@ExcelIgnoreUnannotated
@ColumnWidth(20)
@HeadRowHeight(20)
public class StaFbChapter extends BaseEntity implements TreeParentBo
        {
private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ExcelProperty("ID")
        private String id;

    /** 公司id */
    @ExcelIgnore
        private String versionId;

    /** 章节名称 */
            @ExcelProperty("名称")
        private String name;

    /** 父id */
            @ExcelProperty("父id")
        private String pid;

    /** 族谱 */
            @ExcelProperty("层级编码")
        private String pids;

    /** 编码 */
            @ExcelProperty("编码")
        private String code;

    /** 序号 */
            @ExcelProperty("序号")
        private Integer orderNum;

    /** 部门id */
    @ExcelIgnore
        @TableField(fill = FieldFill.INSERT)
        private Long deptId;

    /** 用户id */
    @ExcelIgnore
        @TableField(fill = FieldFill.INSERT)
        private Long userId;

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setVersionId(String versionId)
            {
            this.versionId = versionId;
            }

    public String getVersionId()
            {
            return versionId;
            }
    public void setName(String name)
            {
            this.name = name;
            }

    public String getName()
            {
            return name;
            }

            @Override
            public String getVersionsId() {
                return versionId;
            }

            public void setPid(String pid) {
                this.pid = pid;
            }

    public String getPid()
            {
            return pid;
            }
    public void setPids(String pids)
            {
            this.pids = pids;
            }

    public String getPids()
            {
            return pids;
            }
    public void setCode(String code)
            {
            this.code = code;
            }

    public String getCode()
            {
            return code;
            }
    public void setOrderNum(Integer orderNum)
            {
            this.orderNum = orderNum;
            }

    public Integer getOrderNum()
            {
            return orderNum;
            }
    public void setDeptId(Long deptId)
            {
            this.deptId = deptId;
            }

    public Long getDeptId()
            {
            return deptId;
            }
    public void setUserId(Long userId)
            {
            this.userId = userId;
            }

    public Long getUserId()
            {
            return userId;
            }

@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("versionId", getVersionId())
            .append("name", getName())
            .append("pid", getPid())
            .append("pids", getPids())
            .append("code", getCode())
            .append("orderNum", getOrderNum())
            .append("deptId", getDeptId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
        .toString();
        }
        }
